package Huihu.src.天梯赛;

import java.util.Scanner;

public class 谁能进图书馆 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int nlx = scanner.nextInt();
        int ptx = scanner.nextInt();
        int xw1nl = scanner.nextInt();
        int xw2nl = scanner.nextInt();
        if (ptx > nlx) {
            if (xw1nl >= nlx && xw2nl >= nlx) {
                System.out.println(xw1nl + "-Y" + " " + xw2nl + "-Y");
                System.out.println("huan ying ru guan");
            } else if (xw1nl <= nlx && xw2nl >= nlx && xw2nl >= ptx) {
                System.out.println(xw1nl + "-Y" + " " + xw2nl + "-Y");
                int X = 2;
                int Y = 1;
                System.out.println("qing " + X + " zhao gu hao " + Y);
            } else if (xw1nl >= nlx && xw2nl <= nlx && xw1nl >= ptx) {
                System.out.println(xw1nl + "-Y" + " " + xw2nl + "-Y");
                int X = 1;
                int Y = 2;
                System.out.println("qing " + X + " zhao gu hao " + Y);
            } else if (xw1nl >= nlx && xw2nl <= nlx && xw1nl <= ptx) {
                System.out.println(xw1nl + "-Y" + " " + xw2nl + "-N");
                int X = 1;
                System.out.println(X + ": huan ying ru guan");
            } else if (xw1nl <= nlx && xw2nl >= nlx && xw2nl <= ptx) {
                System.out.println(xw1nl + "-N" + " " + xw2nl + "-Y");
                int X = 2;
                System.out.println(X + ": huan ying ru guan");
            } else if (xw1nl <= nlx && xw2nl <= nlx) {
                System.out.println(xw1nl + "-N" + " " + xw2nl + "-N");
                System.out.println("zhang da zai lai ba");
            }
        }
    }
}
